import request from '@/utils/request'
// 会员-列表
export function getList(data) {
  return request({
    url: 'biz/member/list',
    method: 'get',
    params: data
  })
}
// 会员-详情
export function getDetail(id) {
  return request({
    url: 'biz/member/'+id,
    method: 'get'
  })
}
// 会员-增
export function getAdd(data) {
  return request({
    url: 'biz/member',
    method: 'post',
    data
  })
}
// 会员-删
export function del(ids) {
  return request({
    url: 'biz/member',
    method: 'delete',
    data: ids
  })
}
// 会员-改
export function getUpdate(data) {
  return request({
    url: 'biz/member',
    method: 'put',
    data
  })
}
// 会员-审核
export function detailCheck(data) {
  return request({
    url: 'biz/member/check',
    method: 'post',
    data
  })
}
// 会员-审核记录
export function detailRecords(id) {
  return request({
    url: 'biz/member/records?id='+id,
    method: 'get',
  })
}
// 会员-分配标签
export function tagsUpdate(data) {
  return request({
    url: 'biz/memberTag/batchSet',
    method: 'post',
    data
  })
}
export default { getList, getAdd, del, getUpdate, getDetail, detailCheck, detailRecords, tagsUpdate}